// const buf1 = Buffer.alloc(10)   // 分配内存空间
// console.log(buf1)


const buf2 = Buffer.from('10')
// console.log(buf2)

const buf3 = Buffer.from('中文')
// console.log(buf3 )

const buf4 = Buffer.concat([buf3,buf2])
console.log(buf4.toString())